﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataTool;

namespace workflowMVC.Common
{
    public class SearchUtil
    {
        public static bool IsMatchTaskKind(byte a , byte b)
        {
            if (a == b || b == 0)
                return true;
            return false;
        }

        internal static bool IsMatchChecker(LOG p, string name)
        {
            if ((p != null && p.Writer == name) || name == "All")
                return true;
            return false;
                
        }

        internal static bool IsMatchApprover(LOG p, string name)
        {
            if ((p != null && p.Writer == name) || name == "All")
                return true;
            return false;
        }
    }
}